package com.kldy8.kldyw.find.script.bean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/9/18.
 */
public class Script
{
    public String script_id;
    public String title;
    public String image;
    public String price;
    public String oa_completion;
    public String category;
    public String url;

    public static Script resolution(JSONObject jsonObject)
    {
        if (jsonObject == null)
        {
            return  null;
        }
        Script m_new = new Script();
        m_new.script_id = jsonObject.optString("script_id");
        m_new.title = jsonObject.optString("title");
        m_new.category = jsonObject.optString("category");
        m_new.image = jsonObject.optString("image");
        m_new.price = jsonObject.optString("price");
        m_new.oa_completion = jsonObject.optString("oa_completion");
        m_new.price = jsonObject.optString("price");
        m_new.url = jsonObject.optString("url");
        return m_new;
    }
}
